package com.example.java_blog.mapper;

import com.example.java_blog.model.BlogInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 均先生
 * Date: 2024-03-10
 * Time: 16:45
 */
@Mapper
public interface BlogInfoMapper {
    List<BlogInfo> selectAllBlog();

    //根据博客id查询
    BlogInfo selectById(Integer blogId);

    //根据博客id修改信息
    Integer updateBlog(BlogInfo blogInfo);

    //根据博客id插入信息
    Integer insertBlog(BlogInfo blogInfo);

}
